package se.webbzon.oschi01.worldcamera;

import java.awt.Dimension;
import java.awt.image.ImageObserver;

import javax.media.j3d.J3DGraphics2D;

import se.webbzon.oschi01.friendly.Friendly;

public class WorldCameraHud extends WorldCameraPane {
	
	/*============================================================
	Constructors
	============================================================*/
	
	/** Creates a new camera heads-up display used to draw things
	 * in front and in the back of the actual 3d world. **/
	@Friendly WorldCameraHud(ImageObserver observer, Dimension d) {
		super(observer,d);
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Paints the heads-up display in the Java3d Graphics 2D instance
	 * given by the user */
	public void paint(J3DGraphics2D g3d, ImageObserver observer) {
		g3d.drawAndFlushImage(getLayer().getBufferedImage(), 0, 0, getImageObserver());
	}

}
